package com.service.transaction;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Georgiana.Scarlat
 * Date: 8/1/12
 * Time: 10:46 AM
 */

public abstract class TransactionManager {

    public abstract Transaction getTransaction(TransactionType transactionType, String name);

    public abstract void commit(Transaction transaction);

    public abstract void rollBack(Transaction transaction);

    public abstract void startConnection();

    public abstract void endConnection();

    public abstract List<Class<? extends Throwable>> getRollbackExceptions();
}
